package com.zb.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @Author WEN
 * @Date 2023/10/31 0031
 **/
@Data
@ApiModel("服务页面二维码对象")
public class ServicePageQrVo {

    @NotNull(message = "服务页面ID不能为空")
    @ApiModelProperty(value = "服务页面ID", required = true)
    private Long id;

    @NotNull(message = "二维码样式类型项不能为空")
    @ApiModelProperty(value = "二维码样式类型：1-无，2-黑白样式，3-自定义样式", required = true, example = "1")
    private Integer qrStyleType;

    @Length(max = 10, message = "二维码标题背景颜色长度限制 10 个字符")
    @ApiModelProperty(value = "二维码标题背景颜色，当qr_style_type=3时生效")
    private String qrBackgroundColor;

    @Length(max = 10, message = "二维码标题字体颜色长度限制 10 个字符")
    @ApiModelProperty(value = "二维码标题字体颜色，当qr_style_type=3时生效")
    private String qrTextColor;

    @NotBlank(message = "二维码标题不能为空")
    @Length(max = 10, message = "二维码标题长度限制 10 个字符")
    @ApiModelProperty(value = "二维码标题", required = true)
    private String qrTitle;

    @Length(max = 20, message = "文案长度限制 20 个字符")
    @ApiModelProperty(value = "文案")
    private String qrProgramme;

    @ApiModelProperty(value = "服务页面图标对象")
    private List<ServicePageIconVo> pageIcons;

    @ApiModelProperty(value = "删除的服务页面图标对象")
    private List<Long> delPageIconIds;
}
